<template>
  <!-- <div id="app" v-bind:style="appDivStyle"> -->
  <!-- <div id="app" >
    <router-view></router-view>
  </div> -->
  <keep-alive>
    <component v-bind:is="currentComponent" v-bind="curProps"></component>
  </keep-alive>
</template>


<script>

import comBaseVue from '../../baseViewModel';
import ChannelTurnDown from './ChannelTurnDown';
import PlayBillManage from './PlayBillManage';


export default {
  mixins: [comBaseVue],
  name:'AssetsAuditFactory',
  data () {
    
    return {
        currentComponent:ChannelTurnDown,
        curProps:null,
    }
  },
  methods:{
    setCurrentComponent:function(type,data){
      if(type=="ChannelTurnDown")
      {
         this.curProps = data;
         this.currentComponent = ChannelTurnDown;
      }
      else if(type=="PlayBillManage")
      {
         this.curProps = data;
         this.currentComponent = PlayBillManage;
      }
       else if(type=="goBack"){
        this.currentComponent = ChannelTurnDown;
      }
    }
  },
  mounted: function mounted() {
    // this.$router.push({ path: '/AssetsAudit' });//跳转到该路由
  }
}


</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
    
</style>
